import http from "./http";

// 
const getHome = () => http.get('/index-infos');

const getDetail= id=>http.get(`/goods/detail/${id}`);

const getCategory = () =>http.get('/categories');

const search = params =>http.get('/search', { params });


export default {
    getHome,
    getDetail,
    getCategory,
    search

};